import request from '@/utils/request';
import store from "@/store";

const env = import.meta.env.MODE || 'development';
const prefix = '';

// 列表 /apiapp/v1/classify/list
export function classifyListApi (params) {
  return request({
    url: `${prefix}/apiapp/v1/classify/list`,
    method: 'get',
    params
  });
}

// 详情 /apiapp/v1/classify/details
export function classifyDetailApi (params) {
  return request({
    url: `${prefix}/apiapp/v1/classify/details`,
    method: 'get',
    params
  });
}

// 新增 /apiapp/v1/classify/create
export function classifyCreateApi (data) {
  return request({
    url: `${prefix}/apiapp/v1/classify/create`,
    method: 'post',
    data
  });
}

// 编辑 /apiapp/v1/classify/edit
export function classifyEditApi (data) {
  return request({
    url: `${prefix}/apiapp/v1/classify/edit`,
    method: 'post',
    data
  });
}

// 删除 /apiapp/v1/classify/delete
export function classifyDeleteApi (data) {
  return request({
    url: `${prefix}/apiapp/v1/classify/delete`,
    method: 'post',
    data
  });
}
